package com.hopes.bizz.risk.statistic.bo;

import com.hopes.bizz.risk.common.constant.enums.RiskSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @time 2023/8/1 16:05
 */
@Data
public class RiskUnitClassifyBO implements Serializable {

    private static final long serialVersionUID = 4314007069252849714L;

    private Integer num;

    private Integer riskLevel;

    private Integer riskUnitType;

    public String getRiskLevelStr() {
        return DictResolver.getItemLabelByValue(RiskSysDictEnum.risk_level, this.getRiskLevel());
    }
    public String getRiskUnitTypeStr() {
        return DictResolver.getItemLabelByValue(RiskSysDictEnum.risk_unit_type, this.getRiskUnitType());
    }

}
